/**
 * Copyright (c) 2005-2012 https://github.com/zhangkaitao
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.runfast.common;

public interface Constants {
    /**
     * 菜单类型
     *
     * @author chenshun
     * @email sunlightcs@gmail.com
     * @date 2016年11月15日 下午1:24:29
     */
    public enum MenuType {
        /**
         * 目录
         */
        CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    /**
     * 操作名称
     */
    String OP_NAME = "operation";
    /** cz超级管理员ID */
    public static final int SUPER_ADMIN = 1;

    /**
     * 当前登录的用户
     */
    String CURRENT_ACCOUNT = "CURRENT_ACCOUNT";
    String CURRENT_USERNAME = "username";

    String ENCODING = "UTF-8";
    /**
     * 上次请求地址
     */
    String PREREQUEST_URL = "PREREQUEST_URL";
    /**
     * 上次请求时间
     */
    String PREREQUEST_TIME = "PREREQUEST_TIME";
    /**
     * 非法请求次数
     */
    String MALICIOUS_REQUEST_TIMES = "MALICIOUS_REQUEST_TIMES";
    String CURRENT_USER = "runfast_app_cuser";
    String APP_DRIVER_SESSION = "app_driver";


    /**
     * 后台用户cz
     */
    String CURRENT_BASE_USER = "base_user";
    /**cz
     * 代理商runfastAgentaccounts
     */
    String CURRENT_RUNFAST_AGENT_ACCOUNTS = "runfast_agent_accounts";

    /**cz
     * 商家businessAccounts
     */
    String CURRENT_RUNFAST_BUSINESS_ACCOUNTS = "runfast_business_accounts";


    /**
     * 通用登录用户（后台管理员，代理商，商家用户）
     * */
    String  ADMIN="admin";



    public final static String TOKEN = "token";
    public final static String SCRETE = "wdptkc88";
    public final static String ISSUER = "runfast";
    public final static String USER_ID = "userId";
}
